﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.AspNet.SignalR;
using System.Threading.Tasks;

namespace PencatatInfoKebakaran
{
    public class InfoKebakaranHub : Hub
    {
        public void Send()
        {
            var db = new KebakaranDBEntities();
            var data = db.InfoKebakarans.Where(p => p.Status.Equals("AKTIF")).ToList<InfoKebakaran>();

            Clients.All.show(data);
        }
    }
}